package control;

import db.DBConnecter;
import entity.Customer;
import dao.CustomerDAO;
import flex.messaging.FlexContext;
import java.sql.SQLException;
import java.sql.ResultSet;

public class ClientControl {
	private DBConnecter db;
	public ClientControl() {
		db = new DBConnecter();
	}
	public Customer getClientInfo(String username){
		CustomerDAO customerDao = new CustomerDAO();
		String userid = (String) FlexContext.getFlexSession().getAttribute(username);
		
		return customerDao.getOneCustomer(userid);
	}
}
